package com.xidian.zhiancloud.dao.riskcontrol.riskevaluate;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskEvaMethSetPossList;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 风险管控-系统设置-风险评价方法设置-四字段
 */
public interface TRiskEvaMethSetPossMapper extends BaseMapper<TRiskEvaMethSetPossList> {

    List<Map<String,String>> getTRiskEvaMethSetPossList(
            @Param("companyid") Long companyid,
            @Param("evaMethodSetId") String evaMethodSetId,
            @Param("criteria") String criteria);

    List<Map<String, Object>> getByEvaMethodSetIdOneList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    List<Map<String, Object>> getByEvaMethodSetIdThreeList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    List<Map<String, Object>> getByEvaMethodSetIdFourList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    List<Map<String, Object>> getByEvaMethodSetIdFiveList
            (@Param("companyId") Long companyId,
             @Param("evaMethodSetId") String evaMethodSetId);

    int addTRiskEvaMethSetPoss(@Param("data") TRiskEvaMethSetPossList data);

    int updateTRiskEvaMethSetPoss(@Param("id") String id,
                               @Param("data") TRiskEvaMethSetPossList data);

    int deleteTRiskEvaMethSetPoss(List<String> list);

}
